package com.epam.chenjo.ms.employeeservice.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.epam.chenjo.ms.employeeservice.dao.EmployeeDao;
import com.epam.chenjo.ms.employeeservice.model.EmployeeDetails;
import com.epam.chenjo.ms.employeeservice.service.EmployeeService;

@Component("e")
public class EmployeeServiceImpl implements EmployeeService {
	private EmployeeDao employeeDao;
	@Override
	public EmployeeDetails getEmployeeDetails(String empId) {
		return employeeDao.findEmployeeDetails(empId);
	}
	public EmployeeDao getEmployeeDao() {
		return employeeDao;
	}
	@Resource(name="d")
	public void setEmployeeDao(EmployeeDao employeeDao) {
		this.employeeDao = employeeDao;
	}


}
